#ifndef GAMENETSERVER_H_
#define GAMENETSERVER_H_

#include "GameNetClient.h"
#include <vector>
/* deklaracja fakowa tutaj  tutaj zeby kompilator byl hepi*/
class GameNetClient;


/* singleton*/
class GameNetServer
  {
private:
   std::vector <GameNetClient *> *net_clients;
    GameNetServer();
    static GameNetServer *instance;
public:    
    /* singleton*/
   static GameNetServer * getInstance()
  {
    if(NULL == instance)
         {
           instance = new GameNetServer();
         }
       return instance;
  }
  
    void addClient(GameNetClient *client);
    void sendMessageToClient(int clientNumber,std::string &message);
    void sendMessageToAll(std::string &message);
    
    /**
     *  Lists actual client list to standard debug
     */
    void listClients();
    ~GameNetServer();
    
  };
#endif /*GAMENETSERVER_H_*/
